package hu.debrecen.adastra.card.repository;

import hu.debrecen.adastra.card.repository.domain.social.UserConnection;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface UserConnectionRepository extends CrudRepository<UserConnection, Long> {

	@Query("select u from UserConnection u where u.connectionPK.userId = ?")
	UserConnection getUserConnectionByUserId(String userId);

}
